<%-- 
    Document   : post-add
    Created on : Feb 13, 2012, 10:44:54 PM
    Author     : PhucAn
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fck" uri="http://java.fckeditor.net" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<form action="PostsAction.do?method=create" method="post">
    <table class="form-table" width="100%">
        <tr>
            <td>Category:</td>
            <td>

                <select name="category">
                    <c:forEach var="cat" items="${list}">
                        <option value="${cat.id}">${cat.name}</option>
                    </c:forEach>
                </select>
            </td>
            <td></td>
        </tr>
        <tr>
            <td>Title:</td>
            <td><input type="text" name="title"/></td>
            <td></td>
        </tr>
        <tr>
            <td>Content</td>
            <td>
                <fck:editor instanceName="defaultEditor" basePath="/fckeditor/"
                            height="300" inputName="content" toolbarSet="Default"/> 
            </td>
            <td></td>
        </tr>
        <tr>
            <td>State:</td>
            <td><input type="checkbox" id="is-public" name="is-public"/></td>
            <td></td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" name="add" value="Save"/></td>
            <td></td>
        </tr>
    </table>
</form>
